package com.gufe.vo.datascreen;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class LeftTopMainChartVO {
    private String collegeName;
    private GenderCountVO preReserve;
    private GenderCountVO club;
    private Integer totalPre;    // 通过 getTotalPre() 计算
    private Integer totalClub;   // 通过 getTotalClub() 计算

    public Integer getTotalPre() {
        return (preReserve != null) ? preReserve.getMale() + preReserve.getFemale() : 0;
    }

    public Integer getTotalClub() {
        return (club != null) ? club.getMale() + club.getFemale() : 0;
    }

}
